package com.xiaoma.domain;

import com.xiaoma.annotation.NotBlank;
import com.xiaoma.annotation.NotNull;
import com.xiaoma.annotation.Regex;


/**
 * @description  
 * @author wangtianxiang
 * @date: 2021/11/18 16:16
 */
public class Login {

    @NotNull(message = "用户名不能为空")
    private String userName;

    @NotBlank(message = "密码不能为空")
    @Regex(regex = "[0-9a-zA-Z]{8,16}",message = "密码必须为8-16位的字母数字组成")
    private String password;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
